package com.rzl.expense.expense.service.impl;

import java.util.List;
import com.rzl.expense.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzl.expense.expense.mapper.EleBaseresourceelectricmeterMapper;
import com.rzl.expense.expense.domain.EleBaseresourceelectricmeter;
import com.rzl.expense.expense.service.IEleBaseresourceelectricmeterService;

/**
 * 11Service业务层处理
 * 
 * @author expense
 * @date 2025-02-20
 */
@Service
public class EleBaseresourceelectricmeterServiceImpl implements IEleBaseresourceelectricmeterService 
{
    @Autowired
    private EleBaseresourceelectricmeterMapper eleBaseresourceelectricmeterMapper;

    /**
     * 查询11
     * 
     * @param baseresourceelectricmeterId 11主键
     * @return 11
     */
    @Override
    public EleBaseresourceelectricmeter selectEleBaseresourceelectricmeterByBaseresourceelectricmeterId(String baseresourceelectricmeterId)
    {
        return eleBaseresourceelectricmeterMapper.selectEleBaseresourceelectricmeterByBaseresourceelectricmeterId(baseresourceelectricmeterId);
    }

    /**
     * 查询11列表
     * 
     * @param eleBaseresourceelectricmeter 11
     * @return 11
     */
    @Override
    public List<EleBaseresourceelectricmeter> selectEleBaseresourceelectricmeterList(EleBaseresourceelectricmeter eleBaseresourceelectricmeter)
    {
        return eleBaseresourceelectricmeterMapper.selectEleBaseresourceelectricmeterList(eleBaseresourceelectricmeter);
    }

    /**
     * 新增11
     * 
     * @param eleBaseresourceelectricmeter 11
     * @return 结果
     */
    @Override
    public int insertEleBaseresourceelectricmeter(EleBaseresourceelectricmeter eleBaseresourceelectricmeter)
    {
        eleBaseresourceelectricmeter.setCreateTime(DateUtils.getNowDate());
        return eleBaseresourceelectricmeterMapper.insertEleBaseresourceelectricmeter(eleBaseresourceelectricmeter);
    }

    /**
     * 修改11
     * 
     * @param eleBaseresourceelectricmeter 11
     * @return 结果
     */
    @Override
    public int updateEleBaseresourceelectricmeter(EleBaseresourceelectricmeter eleBaseresourceelectricmeter)
    {
        eleBaseresourceelectricmeter.setUpdateTime(DateUtils.getNowDate());
        return eleBaseresourceelectricmeterMapper.updateEleBaseresourceelectricmeter(eleBaseresourceelectricmeter);
    }

    /**
     * 批量删除11
     * 
     * @param baseresourceelectricmeterIds 需要删除的11主键
     * @return 结果
     */
    @Override
    public int deleteEleBaseresourceelectricmeterByBaseresourceelectricmeterIds(String[] baseresourceelectricmeterIds)
    {
        return eleBaseresourceelectricmeterMapper.deleteEleBaseresourceelectricmeterByBaseresourceelectricmeterIds(baseresourceelectricmeterIds);
    }

    /**
     * 删除11信息
     * 
     * @param baseresourceelectricmeterId 11主键
     * @return 结果
     */
    @Override
    public int deleteEleBaseresourceelectricmeter(String[] currentDate)
    {
        return eleBaseresourceelectricmeterMapper.deleteEleBaseresourceelectricmeter(currentDate[0],currentDate[1]);
    }




    @Override
    public void batchEleBaseresourceelectricmeter(List<EleBaseresourceelectricmeter> list)
    {

         eleBaseresourceelectricmeterMapper.batchEleBaseresourceelectricmeter(list);
    }


}
